# -*- coding: utf-8 -*-

from odoo import models, fields, api


class reserve_info(models.Model):
    # 预定表

    _name = 'reserve.info'

    reserveid = fields.Integer(string=u'reserveid')
    reserve_name = fields.Char(string=u'预订人姓名')
    reserve_tel = fields.Integer(string=u'预订人电话')
    reserve_sex = fields.Char(string=u'预订人性别')
    reserve_relate = fields.Char(string=u'与入住人关系')
    reserve_idcard = fields.Char(string=u'身份证号')
    oldman_name = fields.Char(string=u'老人姓名')
    oldman_sex = fields.Char(string=u'老人性别')
    nation = fields.Char(string=u'民族')
    born_date = fields.Date(string=u'出生日期')
    nurse_type = fields.Char(string=u'护理类型')
    oldman_idcard = fields.Char(string=u'身份证号')
    pre_address = fields.Char(string=u'现居住地址')
    reserve_type = fields.Char(string=u'预定类型')
    # build_num = fields.Char(string=u'预定床位')
    bed_num = fields.Integer(string=u'床位号')
    reserve_date = fields.Date(string=u'预定日期')
    reserve_update = fields.Date(string=u'预订过期日期')
    reserve_into = fields.Date(string=u'预定入住日期')

    build = fields.Many2one('res.build', string=u'楼宇')
    room = fields.Many2one('res.room', string=u'房间')
    bed = fields.Many2one('res.bed', string=u'床位')
